﻿@model IPagedList<JRFinances.ViewModels.Companies.IndexCompanyViewModel>

 
@{ Html.RenderPartial("_CompanySearch");}

<ul class="company_list">
    @foreach (var company in Model)
    {
        <li>@Html.ActionLink(company.Name, "Details", new { id = company.CompanyId })</li>
    }
</ul>
<link href="/Content/PagedList.css" rel="stylesheet" type="text/css" />
<p>
    @Html.PagedListPager(Model, page => Url.Action("Index", new { page = page }), new PagedListRenderOptions { LinkToFirstPageFormat = "<< Pierwszy", LinkToPreviousPageFormat = "< Poprzedni", LinkToNextPageFormat = "Nastepny >", LinkToLastPageFormat = "Ostatni >>" })
</p>
